<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>注册成功</title>
    <script src="../bootstrap3/jquery-1.9.1.min.js"></script>
</head>
<body>
    <div id="register-success"></div>
    <script>
        var time = 5 ;
        $(function () {
            setTimeout(returnLogin(),1000);
        })
        function returnLogin() {
            if (time>0){
                alert(time)
                $("#register-success").innerHTML="<span id='loginTip' class='ok_txt2'>恭喜注册成功！"+time+" 秒后将自动跳转至登录界面...</span><a href='login.html'>直接跳转</a>";
            }
            time--;
        }
    </script>
</body>
</html>